package com.streambolics.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class MissingInformationException extends RequestException
{
    public MissingInformationException(HttpServletRequest aRequest, String aMissingInfo)
    {
        super (aRequest, aMissingInfo);
    }

    public boolean formatError (HttpServletResponse aResponse) throws Exception
    {
        String r = getRedirect ();
        if (r != null)
        {
            aResponse.sendRedirect (r);
            return true;
        }
        else
        {
            return false;
        }
    }

    public String getRedirect ()
    {
        return null;
    }
}
